package com.example.juyixia;

import java.util.List;

import android.app.Application;
import android.content.Context;
import android.util.Log;

public class Myinfo extends Application{
    private static Context mContext;
    private String username;
    private String userid;
    private String sex;
    private String userpwd;
    private String userage;
    private String userip;
    private List<Myinfo> userfriend;
   



	public String getUserip() {
		return userip;
	}

	public void setUserip(String userip) {
		this.userip = userip;
	}

	public static Context getmContext() {
		return mContext;
	}

	public static void setmContext(Context mContext) {
		Myinfo.mContext = mContext;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getUserid() {
		return userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getUserpwd() {
		return userpwd;
	}

	public void setUserpwd(String userpwd) {
		this.userpwd = userpwd;
	}

	public String getUserage() {
		return userage;
	}

	public void setUserage(String userage) {
		this.userage = userage;
	}


	public List<Myinfo> getUserfriend() {
		return userfriend;
	}

	public void setUserfriend(List<Myinfo> userfriend) {
		this.userfriend = userfriend;
	}

	@Override
    public void onCreate() {
        super.onCreate();
        setUsername("无");
        setUserid("无");
        setSex("无");
        setUserage("无");
        setUserfriend(null);
        setUserpwd("无");
        setUserip("无");
        mContext = getApplicationContext();
    }

    public static Context getInstance() {
        return mContext;
    }
}